package com.ydlclass.enumeration;

/**
 * @Author duWenJian
 * @Date 2023/11/2 14:07
 * @Version 1.0
 */
public enum ResponseCode {
    SUCCESS((byte) 1,"成功"),
    FAIL((byte) 2,"失败");

    private byte code;
    private String desc;

    ResponseCode(byte code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public byte getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
